import request from '@/utils/request'

/**
 * 协议列表
 */
export function protocolList(params) {
  return request({
    url: '/server/protocol/list',
    method: 'get',
    data: params
  })
}
/**
 * 协议-更新
 */
export function protocolUpdate(params) {
  return request({
    url: '/server/protocol/update',
    method: 'post',
    data: params
  })
}
/**
 * 冻结人员
 */
export function frozenUser(params) {
  return request({
    url: '/server/user/frozen',
    method: 'post',
    data: params,
    isFromData: 'true'
  })
}
/**
 * 冻结人员
 */
export function deleteUser(params) {
  return request({
    url: '/server/user/delete',
    method: 'post',
    data: params,
    isFromData: 'true'
  })
}
/**
 * 设置小票打印机标题
 */
export function setPrintTicketName(params) {
  return request({
    url: '/server/agent/setPrintTicketName',
    method: 'POST',
    data: params,
    isFromData: 'true'
  })
}
